package com.ruoyi.classes.service.impl;

import com.ruoyi.classes.domain.Classes;
import com.ruoyi.classes.domain.Description;
import com.ruoyi.classes.domain.StudentClass;
import com.ruoyi.classes.mapper.StudentClassMapper;
import com.ruoyi.classes.service.StudentClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Classname UserClassServiceImpl
 * @Description
 * @Date 2025/5/23 15:51
 * @Created by 高合吴彦祖鹏哥
 */
@Service
public class StudentClassServiceImpl implements StudentClassService {
    @Autowired
    private StudentClassMapper studentClassMapper;
    @Override
    public List<Classes> selectStudentWithClasses(Long id) {
        return studentClassMapper.selectStudentWithClasses(id);
    }

    @Override
    public Boolean insertStudentClasses(StudentClass studentClass) {
        return studentClassMapper.insertStudentClasses(studentClass);
    }

    @Override
    public StudentClass selectByStudentId(Long cId, Long sId) {
        return studentClassMapper.selectClassesByStudentId(cId, sId);
    }

    @Override
    public List<StudentClass> INGList(Long id) {
        List<StudentClass> studentClasses = studentClassMapper.INGList(id);
        return studentClasses;
    }

    @Override
    public List<StudentClass> BaoMing(Long id) {
        List<StudentClass> studentClasses = studentClassMapper.BaoMingList(id);
        return studentClasses;
    }

    @Override
    public List<StudentClass> ListForTagsWithNoOpen(Long user_id, Long tags_id) {
        List<StudentClass> studentClasses = studentClassMapper.ListForTagsWithNoOpen(user_id, tags_id);
        return studentClasses;
    }

    @Override
    public List<StudentClass> searchTextWithNoOpen(String name,Long user_id) {

        List<StudentClass> studentClasses = studentClassMapper.searchTextWithNoOpen(name,user_id);
        return studentClasses;
    }

    @Override
    public List<StudentClass> endList(Long id) {
        List<StudentClass> studentClasses = studentClassMapper.endList(id);
        return studentClasses;
    }
}